<div class="content-sidebar">
    <dl id="goto">
        {{--<dt style="top: 10.5px;"><span class="show-list"></span></dt>--}}
        @foreach($typelist as $k=>$v)
        <dd >
            <a href="#{{$k}}" class="a_{{$k}} t_list"  onclick="change_bg({{$k}})" data-offset="-20" data-speed="500">{{$v}}</a>
        </dd>
        @endforeach

    </dl>
</div>


<script>

    function change_bg(k){
        $('.t_list').css({'background':'','color':''});
        $('.a_'+k).css({'background':'#ff5a00','color':'#ecf2ec','border-radius':'3px'});
    }
</script>